
for i in range(9,0,-1):

    for c in range(1,i+1):
      print(c,'*',i,"=",c*i," ",end=""),
      c+=1
    print("\n")